package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.MerchantGiftPacketShare;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by zhangjh 2016/11/4.
 */
@Repository
public interface MerchantGiftPacketShareRepository extends JpaRepository<MerchantGiftPacketShare, Long>, JpaSpecificationExecutor,MerchantGiftPacketShareRepositoryCustom {
    MerchantGiftPacketShare findBySharedCustomerIdAndGiftPacketId(Long id, Long giftPacketId);
}
